<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-bizTable-add"  autocomplete="off">
			<div class="form-group hidden">	
				<label class="col-sm-2 control-label">生成策略：</label>
				<div class="col-sm-8">
					<input id="genType" name="genType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group hidden">	
				<label class="col-sm-2 control-label">父表名称：</label>
				<div class="col-sm-8">
					<input id="parentName" name="parentName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group ">	
				<label class="col-sm-2 control-label"><span class="red">*</span>表名称：</label>
				<div class="col-sm-8">
					<input id="name" name="name" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label"><span class="red">*</span>表注释：</label>
				<div class="col-sm-8">
					<input id="comments" name="comments" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label"><span class="red">*</span>实体名称：</label>
				<div class="col-sm-8">
					<input id="entityName" name="entityName" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label"><span class="red">*</span>生成包名：</label>
				<div class="col-sm-8">
					<input id="packageName" name="packageName" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label"><span class="red">*</span>作者：</label>
				<div class="col-sm-8">
					<input id="author" name="author" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label"><span class="red">*</span>主键类型：</label>
				<div class="col-sm-3">
					<label class="radio-box"><input type="radio" checked value="1" id="idCata1" name="idCata">自增</label>
                    <label class="radio-box"><input type="radio" value="2" id="idCata2" name="idCata">字符串</label>
				</div>	
				<label class="col-sm-2 control-label"><span class="red">*</span>支持导出：</label>
				<div class="col-sm-3">
					<label class="radio-box"><input type="radio" checked value="1" id="isImport1" name="isImport">是</label>
                    <label class="radio-box"><input type="radio" value="0" id="isImport2" name="isImport">否</label>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "project/bizTable"
		$("#form-bizTable-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-bizTable-add').serialize());
	        }
	    }
	</script>
</body>
</html>
